﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using Coder.Workflow.Searcher;

namespace Coder.Workflow.Stores
{
    public interface IWorkActivityStore<T> where T : WorkflowDbContext
    {
        IEnumerable<WorkActivity> GetByInstance(int intanceId);

        IEnumerable<WorkActivity> GetMyCurrent(WorkActivitySearcher searcher, out int total                      );

       // IQueryable<WorkActivity> BuildQueryMyWorkActiviy(WorkActivitySearcher searcher);
        IQueryable<WorkActivity> InclideAll(IQueryable<WorkActivity> workActivities);
        WorkActivity GetById(int id);
    }
}